package socnet.model;

public class Post {

	private int id = -1;
	private String time;
	private String text;
	private String author;

	public Post(String time, String text, String author) {
		this.time = time;
		this.text = text;
		this.author = author;
		++id;
	}
	
	public Post(){
		++id;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}
	
}
